import app


class OpenAccountApi:

    def __init__(self, session):
        self.session = session

        self.url_realname = app.BASE_HOST+"/member/realname/approverealname"
        self.url_open_account = app.BASE_HOST+"/trust/trust/register"


    # 实名认证接口
    def realname(self, realname, card_id):
        data_dict={"realname":realname,"card_id":card_id}
        return self.session.post(url =self.url_realname,data=data_dict,files={"x":"y"})


    # 开户接口
    def open_account(self):
        return self.session.post(url=self.url_open_account)


    # 第三方开户接口
    def third_open_account(self, url, data_dict):
        return self.session.post(url = url,data=data_dict)
        
